//
//  RVRuleViewController.swift
//  AirTravel
//
//  Created by apple on 2021/11/29.
//

import UIKit
import WebKit
class RVRuleViewController: CommonVC, WKNavigationDelegate{

    
    @IBOutlet weak var webView: WKWebView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        head.title.text = "积分规则"
        webView.navigationDelegate = self
        let urlString = "http://swoole.whichzhen.com/wechat/notify/rule_info.html"
        let url = URL(string: urlString)
        let request = URLRequest(url: url!)
        YProgressHUD.show()
        webView.load(request)
    }

    
    func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
        YProgressHUD.dismiss()
    }
    
    func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
        YProgressHUD.dismiss()
    }

}
